package com.tensai.study.java.features.JDK6.serviceloader;

import java.util.ServiceLoader;

/**
 * @author Tensai
 */
public class SpiMain {
	public static void main(String[] args) {
		ServiceLoader<Animal> shouts = ServiceLoader.load(Animal.class);
		for (Animal s : shouts) {
			s.shout();
		}
	}
}